from django.urls import path, re_path
from . import views
from .uploads import upload_image

app_name = 'accountt'

urlpatterns = [
    path('register/', views.register, name="register"),
    path('person/', views.person_center, name="person"),
    path('edit_user/', views.edit_user, name="edit_user"),
    path('person_article/', views.person_article, name="person_article"),
    path('person_add_article/', views.person_add_article, name="person_add_article"),

    re_path('^upload/(?P<dir_name>[^/]+)$', upload_image, name='upload'),
]